package com.wuzhiming.istudy.pojo;

import lombok.Data;

import java.util.Date;

/**
 * @ClassName: collection
 * @Description: 收藏表实体
 * @Version 1.0
 * @since 2022/2/25 18:40
 */
@Data
public class Collection {
    /**
     * 主键id
     */
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 课程id
     */
    private Integer courseId;

    /**
    *  关联课程
    */
    private Course course;

    /**
     * 收藏时间
     */
    private Date time;

    /**
     * 收藏状态
     */
    private Integer status;

    public Collection(){

    }

    public Collection(Integer userId,Integer status){
        this.userId = userId;
        this.status = status;
    }

    public Collection(Integer userId, Integer courseId,Integer status) {
        this.userId = userId;
        this.courseId = courseId;
        this.status = status;
    }

}
